using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._3DAnalystTools._TerrainDataset
{
    /// <summary>
    /// <para>Change Terrain Reference Scale</para>
    /// <para>Changes the reference scale associated with a terrain pyramid level.</para>
    /// <para>更改与地形金字塔标高关联的参考比例。</para>
    /// </summary>    
    [DisplayName("Change Terrain Reference Scale")]
    public class ChangeTerrainReferenceScale : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public ChangeTerrainReferenceScale()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_terrain">
        /// <para>Input Terrain</para>
        /// <para>The terrain dataset to process.</para>
        /// <para>要处理的 terrain 数据集。</para>
        /// </param>
        /// <param name="_old_refscale">
        /// <para>Old Reference Scale</para>
        /// <para>The reference scale of an existing pyramid level.</para>
        /// <para>现有金字塔级别的参考比例。</para>
        /// </param>
        /// <param name="_new_refscale">
        /// <para>New Reference Scale</para>
        /// <para>The new reference scale for the pyramid level.</para>
        /// <para>金字塔级别的新参考比例。</para>
        /// </param>
        public ChangeTerrainReferenceScale(object _in_terrain, long? _old_refscale, long? _new_refscale)
        {
            this._in_terrain = _in_terrain;
            this._old_refscale = _old_refscale;
            this._new_refscale = _new_refscale;
        }
        public override string ToolboxName => "3D Analyst Tools";

        public override string ToolName => "Change Terrain Reference Scale";

        public override string CallName => "3d.ChangeTerrainReferenceScale";

        public override List<string> AcceptEnvironments => ["autoCommit", "scratchWorkspace", "workspace"];

        public override object[] ParameterInfo => [_in_terrain, _old_refscale, _new_refscale, _derived_out_terrain];

        /// <summary>
        /// <para>Input Terrain</para>
        /// <para>The terrain dataset to process.</para>
        /// <para>要处理的 terrain 数据集。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Terrain")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_terrain { get; set; }


        /// <summary>
        /// <para>Old Reference Scale</para>
        /// <para>The reference scale of an existing pyramid level.</para>
        /// <para>现有金字塔级别的参考比例。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Old Reference Scale")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public long? _old_refscale { get; set; }


        /// <summary>
        /// <para>New Reference Scale</para>
        /// <para>The new reference scale for the pyramid level.</para>
        /// <para>金字塔级别的新参考比例。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("New Reference Scale")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public long? _new_refscale { get; set; }


        /// <summary>
        /// <para>Updated Input Terrain</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Updated Input Terrain")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _derived_out_terrain { get; set; }


        public ChangeTerrainReferenceScale SetEnv(int? autoCommit = null, object scratchWorkspace = null, object workspace = null)
        {
            base.SetEnv(autoCommit: autoCommit, scratchWorkspace: scratchWorkspace, workspace: workspace);
            return this;
        }

    }

}